<?php
// database host
$db_host   = "rdseyiefyz6zuyfprivate.mysql.rds.aliyuncs.com:3306";
// database name
$db_name   = "eggmstest";
// database username
$db_user   = "eggms";
// database password
$db_pass   = "Youegg321";
// table prefix
$prefix    = "egg_";

$ftpConfig['hostname'] = "localhost";
$ftpConfig['port'] = "21";
$ftpConfig['username'] = "eggmstest";
$ftpConfig['password'] = "eggms0508";

$ftp_CFG[] = array(
    'id' => 'testimg02',
    'url' => "http://testimg02.eggms.com/",
    'hostname' => "10.129.24.8",
    'port' => "21",
    'username' => "testimg02",
    'password' => "5b2c9998c6016a17be47bd6c47c0eb99",
    );

$timezone    = "PRC";
$cookie_path    = "/";
$cookie_domain    = "";
$session = "1440";
define('DEBUG_MODE', 1);
// 版本号
define('VERSION','20150428.01');
define('EC_CHARSET','utf-8');
define('ADMIN_PATH','73ycadmin');
define('AUTH_KEY', 'this is a key');
define('OLD_AUTH_KEY', '');
define('API_TIME', '2013-08-20 09:52:22');
define('__PUCM__', 'http://public.m.test.eggms.com/');
define('__PUC__', 'http://public.test.eggms.com/');
define('__IMG__', 'http://www.eggms.com/');

/* 新版数据库配置项 */
// 数据库类型
$_CFG['dbType']             = 'mysqli';
// 数据库地址
$_CFG['dbHost']             = 'rdseyiefyz6zuyfprivate.mysql.rds.aliyuncs.com:3306';
// 用户账号
$_CFG['dbUser']             = 'eggms';
// 用户密码
$_CFG['dbPass']             = 'Youegg321';
// 数据库名称
$_CFG['dbName']             = 'eggmstest';
// 字符集
$_CFG['charset']            = 'utf8';
// 表前缀
$_CFG['prefix']             = 'egg_';
// 数据库缓存时间,单位/秒
$_CFG['dbCacheTime']         = 180;

// 只读数据库连接{数据库类型://主机:端口/用户名/密码/数据库/表前缀/字符集/缓存时间}
$_CFG['dbRead'][]           = 'mysqli://rdstx6jl4gzv5marjeu3p.mysql.rds.aliyuncs.com:3306/eggms/Youegg321/eggmstest/egg_/utf8/3600';
$_CFG['dbRead'][]           = 'mysqli://rdsx4fvm60dac02qwnfic.mysql.rds.aliyuncs.com:3306/eggms/Youegg321/eggmstest/egg_/utf8/3600';

/* 订单最大并发数 */
$_CFG['orderMaxNum'] = 50;
/* 订单数据是否压入队列 */
$_CFG['orderToQueue'] = 0;
/* 订单队列所容订单量 */
$_CFG['orderQueueMax'] = 50;

/*当前系统时间*/
$_CFG['systemTime'] = time();
// $_CFG['systemTime'] = 1434546000;

/*判断活动内容是否显示*/

if (1434542400<$_CFG['systemTime']&&1434816000>$_CFG['systemTime']) {
    $_CFG['is_yugou'] = 1;
}else{
    $_CFG['is_yugou'] = 0;
}


/*判断赠品活动时间*/
if (1434542400<$_CFG['systemTime']&&1434816000>$_CFG['systemTime']) {
    $_CFG['is_gift_start'] = 1;
}else{
    $_CFG['is_gift_start'] = 0;
}

/* memcached缓存机制，不存在则为空 主机|端口|加密账号|加密密码 */
$_CFG['memcachedServer'][0]   = array(
    'host' => '512145b6f8ea49a5.m.cnqdalicm9pub001.ocs.aliyuncs.com',
    'port' => 11211,
    'user' => '512145b6f8ea49a5',
    'pass' => 'Eggms520',
    );

/* memcached缓存机制，队列库存等专用 */
$_CFG['memcachedServer']['mysql'] = $_CFG['memcachedServer']['counter'] = $_CFG['memcachedServer']['queue'] = $_CFG['memcachedServer']['stock']   = array(
    'host' => '512145b6f8ea49a5.m.cnqdalicm9pub001.ocs.aliyuncs.com',
    'port' => 11211,
    'user' => '512145b6f8ea49a5',
    'pass' => 'Eggms520',
    );

/* FTP 用于图片上传 */
$_CFG['FTP'][] = array(
    'id'       => 'test',
    'url'      => "http://test.eggms.com/",
    'hostname' => "10.129.24.8",
    'port'     => "21",
    'username' => "eggmstest",
    'password' => "eggms0508wxx",
    );
